package org.example.springboot14ssm.service.impl;

import org.example.springboot14ssm.bean.Vip;
import org.example.springboot14ssm.repository.VipMapper;
import org.example.springboot14ssm.service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class VipMapperImpl implements VipService {

    @Autowired
    private VipMapper vipMapper;


    @Override
    public Vip getVipBycardNumber(String cardNumber) {
        System.out.println("service:"+cardNumber);
        Vip vip = vipMapper.selectByCardNumber(cardNumber);
        System.out.println("service:"+vip.toString());
        return vip;
    }

    @Override
    public int addVip(Vip vip) {
        return 0;
    }

    @Override
    public int updataVip(Vip vip) {
        return 0;
    }
}
